package com.mihuxiaobaigao.ai.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class Result {

    public int code;
    public String data;
    public Object msg;
    public static Result success() {
        return new Result(1,"success",null);
    }
    public static Result success(Object msg) {
        return new Result(1,"success",msg);
    }
    public static Result error(Object msg) {
        return new Result(0,"error",msg);
    }
}
